package com.dxysun.mybatis.mapper;

import java.util.List;

import org.apache.ibatis.session.RowBounds;

import com.dxysun.mybatis.domain.Dept;
import com.dxysun.mybatis.domain.User;

/**
 * Dao 的接口声明
 */
public interface UserMapper
{

	List<User> selectUserList();

	List<User> selectUserByName(String userName);

	User selectUserById(Integer id);

	Integer insertUser(User user);

	Integer insertUserList(List<User> list);

	Integer updateUserList(List<User> list);

	List<User> queryUserNested();

	List<User> queryUserNestedLazy();

	List<Dept> queryDeptNested();

	List<User> queryUserList(RowBounds rowBounds);
}